package com.crest.wm;

/**
 * Created with IntelliJ IDEA.
 * User: prabu
 * Date: 22/4/13
 * Time: 4:12 PM
 * To change this template use File | Settings | File Templates.
 */
public class Ticket {


    private Integer id;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public static Ticket newInstance()
    {
        return new Ticket();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Ticket ticket = (Ticket) o;

        if (!id.equals(ticket.id)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return id.hashCode();
    }
}
